﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.WMS.WareHouseAllot.Dto.DocCode
{
    /// <summary>
    /// 自动生成编码数据传输对象
    /// </summary>
    public class DoccodeDto
    {
        /// <summary>
        /// 服务名称
        /// </summary>
        public string ServiceName { get; set; }

        /// <summary>
        /// 单据字段
        /// </summary>
        public string Receipts { get; set; }

        /// <summary>
        /// 前缀
        /// </summary>
        public string Prefix { get; set; }

        /// <summary>
        /// 规则类型
        /// 年、年月、年月日、无
        /// </summary>
        public string RuleType { get; set; }

        /// <summary>
        /// 编码位数
        /// </summary>
        public int CodeNum { get; set; }

        /// <summary>
        /// 增长类型
        /// </summary>
        public string IncreaseType { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [MaxLength(30, ErrorMessage = "创建人长度不能超过50个字符")]
        public string CreateName { get; set; }

        /// <summary>
        /// 软删除
        /// true: 已删除 false: 未删除    
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
